﻿using ChessGame.Pieces;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ChessGame.Pieces
{
    /// <summary>
    /// Biship Object
    /// </summary>
    public class Bishop : Chesspiece
    {
        /// <summary>
        /// Constructor of Bishop
        /// </summary>
        /// <param name="_colour">Side colour of the Bishop</param>
        /// <param name="_positionX">Position X</param>
        /// <param name="_positionY">Position Y</param>
        public Bishop(Boolean _colour, int _positionX, int _positionY)
        {
            Colour = _colour;
            PositionX = _positionX;
            PositionY = _positionY;
            Type = "Bishop";
            PieceValue = 3;
            movement = new Movement.Movement();
            startMovement = new Movement.Movement();
            hit = new Movement.Hit();
            for (int i = 1; i <= 8; i++)
            {
                movement.Add(i, i);
                movement.Add(i, -i);
                movement.Add(-i, -i);
                movement.Add(-i, i);

                hit.Add(i, i);
                hit.Add(i, -i);
                hit.Add(-i, -i);
                hit.Add(-i, i);
            }
            firstMove = false;
        }

    }
}
